AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include('shared.lua')

local function DoubleJump(ply, key)
	if (key == IN_JUMP && !ply.Jump2 && !ply:IsOnGround() && ply:GetNWBool("Double Jumpd")) then
		ply:SetVelocity(ply:GetForward() * 150 + Vector(0, 0, 300))
		ply.Jump2 = true
	elseif ply:IsOnGround() then
		ply.Jump2 = false
	end
end
hook.Add("KeyPress", "doublejump", DoubleJump)
